cmake_minimum_required(VERSION 3.0.0)
project(bdbvu)

set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES
    main.cpp
    mainwindow.cpp
    database.cpp
    mainwindow.h
    database.h
	ui_mainwindow.h)

find_package( Qt5Core REQUIRED )
find_package( Qt5Widgets REQUIRED )
find_package( Qt5Gui REQUIRED )

add_executable(bdbvu ${SOURCE_FILES})

qt5_use_modules(bdbvu Core Widgets Gui )
target_link_libraries(${CMAKE_PROJECT_NAME} ${Qt5Core_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Gui_LIBRARIES})
